package com.example.demo.outlook.Exception;


import lombok.Data;

@Data
/**
 * @author linls
 */
public class CommonException extends RuntimeException {

    private static final long serialVersionUID =1L;

   // private String message;

    private int code;

   // private int status;


    public CommonException(String message, int code) {
        super(message);
        this.code = code;
    }

    public CommonException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public CommonException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }
}
